3.4.98 \(\int \frac {(a+c x^2)^3}{d+e x} \, dx\)

Optimal. Leaf size=173 \[ -\frac {c d x \left (3 a^2 e^4+3 a c d^2 e^2+c^2 d^4\right )}{e^6}+\frac {c x^2 \left (3 a^2 e^4+3 a c d^2 e^2+c^2 d^4\right )}{2 e^5}-\frac {c^2 d x^3 \left (3 a e^2+c d^2\right )}{3 e^4}+\frac {c^2 x^4 \left (3 a e^2+c d^2\right )}{4 e^3}+\frac {\left (a e^2+c d^2\right )^3 \log (d+e x)}{e^7}-\frac {c^3 d x^5}{5 e^2}+\frac {c^3 x^6}{6 e} \]

________________________________________________________________________________________

Rubi [A]  time = 0.14, antiderivative size = 173, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {697} \begin {gather*} \frac {c x^2 \left (3 a^2 e^4+3 a c d^2 e^2+c^2 d^4\right )}{2 e^5}-\frac {c d x \left (3 a^2 e^4+3 a c d^2 e^2+c^2 d^4\right )}{e^6}+\frac {c^2 x^4 \left (3 a e^2+c d^2\right )}{4 e^3}-\frac {c^2 d x^3 \left (3 a e^2+c d^2\right )}{3 e^4}+\frac {\left (a e^2+c d^2\right )^3 \log (d+e x)}{e^7}-\frac {c^3 d x^5}{5 e^2}+\frac {c^3 x^6}{6 e} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + c*x^2)^3/(d + e*x),x]

[Out]

-((c*d*(c^2*d^4 + 3*a*c*d^2*e^2 + 3*a^2*e^4)*x)/e^6) + (c*(c^2*d^4 + 3*a*c*d^2*e^2 + 3*a^2*e^4)*x^2)/(2*e^5) -
 (c^2*d*(c*d^2 + 3*a*e^2)*x^3)/(3*e^4) + (c^2*(c*d^2 + 3*a*e^2)*x^4)/(4*e^3) - (c^3*d*x^5)/(5*e^2) + (c^3*x^6)
/(6*e) + ((c*d^2 + a*e^2)^3*Log[d + e*x])/e^7

Rule 697

Int[((d_) + (e_.)*(x_))^(m_)*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(d + e*x)^m*(a + c*
x^2)^p, x], x] /; FreeQ[{a, c, d, e, m}, x] && NeQ[c*d^2 + a*e^2, 0] && IGtQ[p, 0]

Rubi steps

\begin {align*} \int \frac {\left (a+c x^2\right )^3}{d+e x} \, dx &=\int \left (-\frac {c d \left (c^2 d^4+3 a c d^2 e^2+3 a^2 e^4\right )}{e^6}+\frac {c \left (c^2 d^4+3 a c d^2 e^2+3 a^2 e^4\right ) x}{e^5}-\frac {c^2 d \left (c d^2+3 a e^2\right ) x^2}{e^4}+\frac {c^2 \left (c d^2+3 a e^2\right ) x^3}{e^3}-\frac {c^3 d x^4}{e^2}+\frac {c^3 x^5}{e}+\frac {\left (c d^2+a e^2\right )^3}{e^6 (d+e x)}\right ) \, dx\\ &=-\frac {c d \left (c^2 d^4+3 a c d^2 e^2+3 a^2 e^4\right ) x}{e^6}+\frac {c \left (c^2 d^4+3 a c d^2 e^2+3 a^2 e^4\right ) x^2}{2 e^5}-\frac {c^2 d \left (c d^2+3 a e^2\right ) x^3}{3 e^4}+\frac {c^2 \left (c d^2+3 a e^2\right ) x^4}{4 e^3}-\frac {c^3 d x^5}{5 e^2}+\frac {c^3 x^6}{6 e}+\frac {\left (c d^2+a e^2\right )^3 \log (d+e x)}{e^7}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 142, normalized size = 0.82 \begin {gather*} \frac {c e x \left (90 a^2 e^4 (e x-2 d)+15 a c e^2 \left (-12 d^3+6 d^2 e x-4 d e^2 x^2+3 e^3 x^3\right )+c^2 \left (-60 d^5+30 d^4 e x-20 d^3 e^2 x^2+15 d^2 e^3 x^3-12 d e^4 x^4+10 e^5 x^5\right )\right )+60 \left (a e^2+c d^2\right )^3 \log (d+e x)}{60 e^7} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + c*x^2)^3/(d + e*x),x]

[Out]

(c*e*x*(90*a^2*e^4*(-2*d + e*x) + 15*a*c*e^2*(-12*d^3 + 6*d^2*e*x - 4*d*e^2*x^2 + 3*e^3*x^3) + c^2*(-60*d^5 +
30*d^4*e*x - 20*d^3*e^2*x^2 + 15*d^2*e^3*x^3 - 12*d*e^4*x^4 + 10*e^5*x^5)) + 60*(c*d^2 + a*e^2)^3*Log[d + e*x]
)/(60*e^7)

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a+c x^2\right )^3}{d+e x} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(a + c*x^2)^3/(d + e*x),x]

[Out]

IntegrateAlgebraic[(a + c*x^2)^3/(d + e*x), x]

________________________________________________________________________________________

fricas [A]  time = 0.39, size = 198, normalized size = 1.14 \begin {gather*} \frac {10 \, c^{3} e^{6} x^{6} - 12 \, c^{3} d e^{5} x^{5} + 15 \, {\left (c^{3} d^{2} e^{4} + 3 \, a c^{2} e^{6}\right )} x^{4} - 20 \, {\left (c^{3} d^{3} e^{3} + 3 \, a c^{2} d e^{5}\right )} x^{3} + 30 \, {\left (c^{3} d^{4} e^{2} + 3 \, a c^{2} d^{2} e^{4} + 3 \, a^{2} c e^{6}\right )} x^{2} - 60 \, {\left (c^{3} d^{5} e + 3 \, a c^{2} d^{3} e^{3} + 3 \, a^{2} c d e^{5}\right )} x + 60 \, {\left (c^{3} d^{6} + 3 \, a c^{2} d^{4} e^{2} + 3 \, a^{2} c d^{2} e^{4} + a^{3} e^{6}\right )} \log \left (e x + d\right )}{60 \, e^{7}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+a)^3/(e*x+d),x, algorithm="fricas")

[Out]

1/60*(10*c^3*e^6*x^6 - 12*c^3*d*e^5*x^5 + 15*(c^3*d^2*e^4 + 3*a*c^2*e^6)*x^4 - 20*(c^3*d^3*e^3 + 3*a*c^2*d*e^5
)*x^3 + 30*(c^3*d^4*e^2 + 3*a*c^2*d^2*e^4 + 3*a^2*c*e^6)*x^2 - 60*(c^3*d^5*e + 3*a*c^2*d^3*e^3 + 3*a^2*c*d*e^5
)*x + 60*(c^3*d^6 + 3*a*c^2*d^4*e^2 + 3*a^2*c*d^2*e^4 + a^3*e^6)*log(e*x + d))/e^7

________________________________________________________________________________________

giac [A]  time = 0.15, size = 192, normalized size = 1.11 \begin {gather*} {\left (c^{3} d^{6} + 3 \, a c^{2} d^{4} e^{2} + 3 \, a^{2} c d^{2} e^{4} + a^{3} e^{6}\right )} e^{\left (-7\right )} \log \left ({\left | x e + d \right |}\right ) + \frac {1}{60} \, {\left (10 \, c^{3} x^{6} e^{5} - 12 \, c^{3} d x^{5} e^{4} + 15 \, c^{3} d^{2} x^{4} e^{3} - 20 \, c^{3} d^{3} x^{3} e^{2} + 30 \, c^{3} d^{4} x^{2} e - 60 \, c^{3} d^{5} x + 45 \, a c^{2} x^{4} e^{5} - 60 \, a c^{2} d x^{3} e^{4} + 90 \, a c^{2} d^{2} x^{2} e^{3} - 180 \, a c^{2} d^{3} x e^{2} + 90 \, a^{2} c x^{2} e^{5} - 180 \, a^{2} c d x e^{4}\right )} e^{\left (-6\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+a)^3/(e*x+d),x, algorithm="giac")

[Out]

(c^3*d^6 + 3*a*c^2*d^4*e^2 + 3*a^2*c*d^2*e^4 + a^3*e^6)*e^(-7)*log(abs(x*e + d)) + 1/60*(10*c^3*x^6*e^5 - 12*c
^3*d*x^5*e^4 + 15*c^3*d^2*x^4*e^3 - 20*c^3*d^3*x^3*e^2 + 30*c^3*d^4*x^2*e - 60*c^3*d^5*x + 45*a*c^2*x^4*e^5 -
60*a*c^2*d*x^3*e^4 + 90*a*c^2*d^2*x^2*e^3 - 180*a*c^2*d^3*x*e^2 + 90*a^2*c*x^2*e^5 - 180*a^2*c*d*x*e^4)*e^(-6)

________________________________________________________________________________________

maple [A]  time = 0.04, size = 220, normalized size = 1.27 \begin {gather*} \frac {c^{3} x^{6}}{6 e}-\frac {c^{3} d \,x^{5}}{5 e^{2}}+\frac {3 a \,c^{2} x^{4}}{4 e}+\frac {c^{3} d^{2} x^{4}}{4 e^{3}}-\frac {a \,c^{2} d \,x^{3}}{e^{2}}-\frac {c^{3} d^{3} x^{3}}{3 e^{4}}+\frac {3 a^{2} c \,x^{2}}{2 e}+\frac {3 a \,c^{2} d^{2} x^{2}}{2 e^{3}}+\frac {c^{3} d^{4} x^{2}}{2 e^{5}}+\frac {a^{3} \ln \left (e x +d \right )}{e}+\frac {3 a^{2} c \,d^{2} \ln \left (e x +d \right )}{e^{3}}-\frac {3 a^{2} c d x}{e^{2}}+\frac {3 a \,c^{2} d^{4} \ln \left (e x +d \right )}{e^{5}}-\frac {3 a \,c^{2} d^{3} x}{e^{4}}+\frac {c^{3} d^{6} \ln \left (e x +d \right )}{e^{7}}-\frac {c^{3} d^{5} x}{e^{6}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c*x^2+a)^3/(e*x+d),x)

[Out]

1/6*c^3/e*x^6-1/5*c^3*d/e^2*x^5+3/4*c^2/e*x^4*a+1/4*c^3*d^2/e^3*x^4-c^2/e^2*x^3*a*d-1/3*c^3*d^3/e^4*x^3+3/2*c/
e*x^2*a^2+3/2*c^2/e^3*x^2*a*d^2+1/2*c^3*d^4/e^5*x^2-3*c/e^2*a^2*d*x-3*c^2/e^4*a*d^3*x-c^3*d^5/e^6*x+1/e*ln(e*x
+d)*a^3+3/e^3*ln(e*x+d)*d^2*a^2*c+3/e^5*ln(e*x+d)*a*c^2*d^4+c^3*d^6/e^7*ln(e*x+d)

________________________________________________________________________________________

maxima [A]  time = 1.35, size = 198, normalized size = 1.14 \begin {gather*} \frac {10 \, c^{3} e^{5} x^{6} - 12 \, c^{3} d e^{4} x^{5} + 15 \, {\left (c^{3} d^{2} e^{3} + 3 \, a c^{2} e^{5}\right )} x^{4} - 20 \, {\left (c^{3} d^{3} e^{2} + 3 \, a c^{2} d e^{4}\right )} x^{3} + 30 \, {\left (c^{3} d^{4} e + 3 \, a c^{2} d^{2} e^{3} + 3 \, a^{2} c e^{5}\right )} x^{2} - 60 \, {\left (c^{3} d^{5} + 3 \, a c^{2} d^{3} e^{2} + 3 \, a^{2} c d e^{4}\right )} x}{60 \, e^{6}} + \frac {{\left (c^{3} d^{6} + 3 \, a c^{2} d^{4} e^{2} + 3 \, a^{2} c d^{2} e^{4} + a^{3} e^{6}\right )} \log \left (e x + d\right )}{e^{7}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+a)^3/(e*x+d),x, algorithm="maxima")

[Out]

1/60*(10*c^3*e^5*x^6 - 12*c^3*d*e^4*x^5 + 15*(c^3*d^2*e^3 + 3*a*c^2*e^5)*x^4 - 20*(c^3*d^3*e^2 + 3*a*c^2*d*e^4
)*x^3 + 30*(c^3*d^4*e + 3*a*c^2*d^2*e^3 + 3*a^2*c*e^5)*x^2 - 60*(c^3*d^5 + 3*a*c^2*d^3*e^2 + 3*a^2*c*d*e^4)*x)
/e^6 + (c^3*d^6 + 3*a*c^2*d^4*e^2 + 3*a^2*c*d^2*e^4 + a^3*e^6)*log(e*x + d)/e^7

________________________________________________________________________________________

mupad [B]  time = 0.29, size = 213, normalized size = 1.23 \begin {gather*} x^2\,\left (\frac {d^2\,\left (\frac {3\,a\,c^2}{e}+\frac {c^3\,d^2}{e^3}\right )}{2\,e^2}+\frac {3\,a^2\,c}{2\,e}\right )+x^4\,\left (\frac {3\,a\,c^2}{4\,e}+\frac {c^3\,d^2}{4\,e^3}\right )+\frac {c^3\,x^6}{6\,e}+\frac {\ln \left (d+e\,x\right )\,\left (a^3\,e^6+3\,a^2\,c\,d^2\,e^4+3\,a\,c^2\,d^4\,e^2+c^3\,d^6\right )}{e^7}-\frac {c^3\,d\,x^5}{5\,e^2}-\frac {d\,x^3\,\left (\frac {3\,a\,c^2}{e}+\frac {c^3\,d^2}{e^3}\right )}{3\,e}-\frac {d\,x\,\left (\frac {d^2\,\left (\frac {3\,a\,c^2}{e}+\frac {c^3\,d^2}{e^3}\right )}{e^2}+\frac {3\,a^2\,c}{e}\right )}{e} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + c*x^2)^3/(d + e*x),x)

[Out]

x^2*((d^2*((3*a*c^2)/e + (c^3*d^2)/e^3))/(2*e^2) + (3*a^2*c)/(2*e)) + x^4*((3*a*c^2)/(4*e) + (c^3*d^2)/(4*e^3)
) + (c^3*x^6)/(6*e) + (log(d + e*x)*(a^3*e^6 + c^3*d^6 + 3*a*c^2*d^4*e^2 + 3*a^2*c*d^2*e^4))/e^7 - (c^3*d*x^5)
/(5*e^2) - (d*x^3*((3*a*c^2)/e + (c^3*d^2)/e^3))/(3*e) - (d*x*((d^2*((3*a*c^2)/e + (c^3*d^2)/e^3))/e^2 + (3*a^
2*c)/e))/e

________________________________________________________________________________________

sympy [A]  time = 0.39, size = 177, normalized size = 1.02 \begin {gather*} - \frac {c^{3} d x^{5}}{5 e^{2}} + \frac {c^{3} x^{6}}{6 e} + x^{4} \left (\frac {3 a c^{2}}{4 e} + \frac {c^{3} d^{2}}{4 e^{3}}\right ) + x^{3} \left (- \frac {a c^{2} d}{e^{2}} - \frac {c^{3} d^{3}}{3 e^{4}}\right ) + x^{2} \left (\frac {3 a^{2} c}{2 e} + \frac {3 a c^{2} d^{2}}{2 e^{3}} + \frac {c^{3} d^{4}}{2 e^{5}}\right ) + x \left (- \frac {3 a^{2} c d}{e^{2}} - \frac {3 a c^{2} d^{3}}{e^{4}} - \frac {c^{3} d^{5}}{e^{6}}\right ) + \frac {\left (a e^{2} + c d^{2}\right )^{3} \log {\left (d + e x \right )}}{e^{7}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x**2+a)**3/(e*x+d),x)

[Out]

-c**3*d*x**5/(5*e**2) + c**3*x**6/(6*e) + x**4*(3*a*c**2/(4*e) + c**3*d**2/(4*e**3)) + x**3*(-a*c**2*d/e**2 -
c**3*d**3/(3*e**4)) + x**2*(3*a**2*c/(2*e) + 3*a*c**2*d**2/(2*e**3) + c**3*d**4/(2*e**5)) + x*(-3*a**2*c*d/e**
2 - 3*a*c**2*d**3/e**4 - c**3*d**5/e**6) + (a*e**2 + c*d**2)**3*log(d + e*x)/e**7

________________________________________________________________________________________